/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ucuenca.ec.amazonnosqlfinal.test;

/**
 *
 * @author mivkys
 */
import com.google.gson.Gson; 
 
public class escribe_json {
    public static void main(String args[]) throws java.io.IOException {
        Gson gson = new Gson();
        String datos = "Hola";
        String jsonString = gson.toJson(datos);
        System.out.println("JSON: " + jsonString);        
    }
// public static void main(String args[]) throws java.io.IOException {
//    Gson gson = new Gson();
//    Collection collection = new ArrayList();
//    collection.add("hello");
//    collection.add(5);
//    String json = gson.toJson(collection);
//    System.out.println("JSON: " + json);
//}
}
